import axios from '@/libs/api.request'

/**
 * 包列表
 * */
export const getPackList = params => {
  return axios.request({
    url: '/queryBaleInfo',
    params,
    method: 'get'
  })
}

/**
 *新增包类型
 * */
export const addPack = data => {
  return axios.request({
    url: '/addBaleInfo',
    data,
    method: 'post'
  })
}

/**
 * 删除打包信息
 * */
export const delPack = data => {
  return axios.request({
    url: '/delBaleInfo',
    data,
    method: 'post'
  })
}

/**
 * 修改打包信息
 * */
export const amendPack = data => {
  return axios.request({
    url: '/updBaleInfo',
    data,
    method: 'post'
  })
}
